package com.frogs.ucenter.dao.ibatis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Repository;

import com.frogs.framework.base.dao.ibatis.BaseDaoIbatis;
import com.frogs.ucenter.dao.UserIntegralConsumeBlockingDao;
import com.frogs.ucenter.entity.UserIntegralConsumeBlocking;
import com.ibatis.sqlmap.client.SqlMapClient;

@Repository("userIntegralConsumeBlockingDao")
public class UserIntegralConsumeBlockingDaoImpl extends BaseDaoIbatis<UserIntegralConsumeBlocking> implements UserIntegralConsumeBlockingDao {

    public UserIntegralConsumeBlockingDaoImpl() {
        super();
        setNameSpace( "user_integral_consume_blocking" );
    }

    @Required
    @Autowired
    public void setSqlMapClientAutowired(SqlMapClient sqlMapClient) {
        super.setSqlMapClient( sqlMapClient );
    }

	@Override
	public UserIntegralConsumeBlocking selectByOrderId(String orderId) {
		
		return (UserIntegralConsumeBlocking) getSqlMapClientTemplate().queryForObject(getNameSpace()+".selectByOrderId", orderId);
	}
}